﻿@{
    ViewBag.Title = "Quản lý User";
    var currentUser = Session[NCLCustomerManagement.Common.Constant.Constant.CURRENT_USER]
                       as NCLCustomerManagement.UI.Models.User.AuthenticatedUser;
    var username = currentUser.Username;
    var isAdmin = currentUser.IsAdmin;                       
}

@section scripts{
    <script src="/Scripts/User/UserManagement.js?time=@DateTime.Now.Millisecond"></script>

}



@section title{
Quản lý User
}



<div id="customer-list" class="area">
    <div class="btn-grp" style="margin-bottom: 10px;">
        <div class="btn-toolbar">
            <div class="btn-group" style="float: right;">
                @if (isAdmin)
                {
                    <button id="btnNew" class="btn btn-primary" onclick="newUser();"><span class="glyphicon glyphicon-plus" title="Thêm khách hàng mới"></span></button>
                    <button id="btnDel" class="btn btn-danger"><span class="glyphicon glyphicon-remove" title="Xóa"></span></button>
                }
              

            </div>
             <button id="btnActivate" type="button" class="btn btn-default">Tạm ngưng hoạt động</button>
        </div>
         
    </div>
    <table id="list"></table>
    <div id="listPager" class="scroll" style="text-align: center;"></div>
    <div id="listPsetcols" class="scroll" style="text-align: center;"></div>
</div>

<div id="dialog-confirm" title="Xác nhận" style="display: none;">
    <p>
        <span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
        Bạn có chắc muốn xóa những User đã chọn?
    </p>
</div>

<div id="editWindow" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Modal title</h4>
            </div>
            <div class="modal-body">
                <p>One fine body&hellip;</p>
            </div>

        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
